﻿using System.Xml.Serialization;

namespace Toybox.NicoSharp.Live
{
	using Primitives;

	partial class PlayerStatus
	{
		/// <summary>
		/// ユーザー
		/// </summary>
		public class User : AbstractUser
		{
			/// <summary>
			/// 年齢
			/// </summary>
			public int userAge;

			/// <summary>
			/// 性別
			/// </summary>
			public Sex userSex;

			/// <summary>
			/// 出身地
			/// </summary>
			public string userDomain;

			/// <summary>
			/// 所在地
			/// </summary>
			public Prefecture userPrefecture;

			/// <summary>
			/// 言語
			/// </summary>
			public string userLanguage;

			/// <summary>
			/// ルーム名
			/// </summary>
			public string room_label;

			/// <summary>
			/// 座席ナンバー
			/// </summary>
			public string room_seetno;

			public string hkey;

			/// <summary>
			/// コミュニティ参加状態
			/// </summary>
			public string is_join;

			public string immu_comment;

			public string can_broadcast;

			public string can_forcelogin;

			/// <summary>
			/// ツイッター情報
			/// </summary>
			public TwitterInfo twitter_info;
		}

		#region [SubClass]

		/// <summary>
		/// ツイッター情報
		/// </summary>
		public class TwitterInfo
		{
			/// <summary>
			/// ツイッター使用の可否
			/// </summary>
			public string status;

			public string screen_name;

			public int followers_count;

			public bool is_vip;

			public string profile_image_url;

			public string after_auth;

			/// <summary>
			/// ツイッターToken
			/// </summary>
			public string tweet_token;
		}

		#endregion [SubClass]

	}
}